package com.yupi.springbootinit.model.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @author chenwl
* @description 用户
* @TableName user
* @Date 2024-11-10 16:52:41
*/
@TableName(value = "user")
@Data
public class User implements Serializable{
    /**
    * id
    */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
    * 账号
    */
    @TableField(value = "userAccount")
    private String userAccount;
    /**
    * 密码
    */
    @TableField(value = "userPassword")
    private String userPassword;
    /**
    * 用户昵称
    */
    @TableField(value = "userName")
    private String userName;
    /**
    * 用户头像
    */
    @TableField(value = "userAvatar")
    private String userAvatar;
    /**
    * 用户角色：user/admin
    */
    @TableField(value = "userRole")
    private String userRole;
    /**
    * 创建时间
    */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
    * 更新时间
    */
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    /**
    * 是否删除
    */
    @TableField(value = "isDelete")
    @TableLogic
    private Integer isDelete;
}

